/*
 * hkh-project
 * leafteamwork.blogspot.com
 * Tool: Netbeans 6.7.1 - SQL Server 2005
 */
package vn.com.hkh.dto;

import java.io.Serializable;

/**
 *
 * @author leaf
 */
public class UserDTO implements Serializable {

    private static long serialVersionUDI = 1L;

    private String username;
    private String password;
    private String roleID;
    private String accountID;
    private String alias;
    private String when;
    private int status;

    public UserDTO() {
    }

    public UserDTO(String _username, String _password, String _roleID, String _accountID, String _alias, String _when, int _status) {
        this.username = _username;
        this.password = _password;
        this.roleID = _roleID;
        this.accountID = _accountID;
        this.alias = _alias;
        this.when = _when;
        this.status = _status;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String _username) {
        this.username = _username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String _password) {
        this.password = _password;
    }

    /**
     * @return the roleID
     */
    public String getRoleID() {
        return roleID;
    }

    /**
     * @param roleID the roleID to set
     */
    public void setRoleID(String _roleID) {
        this.roleID = _roleID;
    }

    /**
     * @return the accountID
     */
    public String getAccountID() {
        return accountID;
    }

    /**
     * @param accountID the accountID to set
     */
    public void setAccountID(String _accountID) {
        this.accountID = _accountID;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String _alias) {
        this.alias = _alias;
    }

    /**
     * @return the when
     */
    public String getWhen() {
        return when;
    }

    /**
     * @param when the when to set
     */
    public void setWhen(String _when) {
        this.when = _when;
    }

     /**
     * @return the status
     */
    public int getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(int _status) {
        this.status = _status;
    }

    @Override
    public int hashCode() {
        int _hash = 0;
        _hash += (getUsername() != null ? getUsername().hashCode() : 0);
        return _hash;
    }

    @Override
    public boolean equals(Object _object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(_object instanceof UserDTO)) {
            return false;
        }
        UserDTO _other = (UserDTO) _object;
        if ((this.getUsername() == null && _other.getUsername() != null) || (this.getUsername() != null && !this.getUsername().equals(_other.getUsername()))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "UserDTO[username=" + getUsername() + "]";
    }

   
}
